package com.cljh.service;

import com.cljh.bean.Product;
import com.cljh.bean.User;
import com.cljh.controller.page.PageBean;
import com.cljh.controller.page.UserPageBean;
import org.apache.ibatis.annotations.Param;


import java.util.List;

public interface UserService {
//    PageBean<User> selectAllByCondition(Integer currentPage, Integer pageSize, User user);

    boolean save( User user);

    boolean delete(Integer id);

    boolean update(User user);

    boolean deleteByIds(List<Integer> ids);

    User selectById(Integer id);

    List<User> userList();

    List<User> userList1();

    boolean saveAll( List<User> users);

    PageBean<User> userConditionList(Integer currentPage, Integer pageSize, User user);

    int countUserNum();


    User selectByUsername(String username);

    User selectByUsernameAndPwd(@Param("user")User user);

    User selectByEmail(String username,String emailCode);

    User selectByEmailCode(String email);
}
